Skip to main content

CreateIpv6EgressOnlyRule

Description

call the CreateIpv6EgressOnlyRule interface to add an active-only rule for IPv6 addresses.

Request Method

POST

Request Path

/apsara/route/Vpc/CreateIpv6EgressOnlyRule

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNoruledescriptiononly the description of the active rule. is 2 to 256 characters in length and must start with a letter or Chinese, can contain numbers, dots (.), underscore (_) and dash (-), but you cannot use http:// or https:// beginning.
InstanceIdBODYstringYesipv6-hp3nxjkfxn5pnhgl5****The ID of the IPv6 address that only the active rule needs to be set.
regionIdBODYstringYesNo sample value for this parameter.region id
Ipv6GatewayIdBODYstringYesipv6gw-hp3c2paq0ywauasza****IPv6 gateway ID.
RegionIdBODYstringYescn-huhehaotethe region ID of the IPv6 gateway. You can obtain the region ID by calling the DescribeRegions interface.
ClientTokenBODYstringNo123456client token to ensure the idempotence of the request. the parameter value is generated by the client, which must be unique between different requests and the maximum value does not exceed 64 ASCII characters.
InstanceTypeBODYstringNoIPv6AddressYou need to set the instance type of only the active rule, value: Ipv6Address(default):IPv6 address.
versionBODYstringNo2016-01-01version of api
NameBODYstringNorulenameonly the name of the active rule. is 2 to 128 characters in length and must start with a letter or Chinese, can contain numbers, dots (.), underscore (_) and dash (-), but you cannot use http:// or https:// beginning.

Return data

NameTypeSample valueDescription
Ipv6EgressRuleIdstringipv6py-hp3w98rmlbqp01245****only the ID of the active rule.
RequestIdstring9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75request ID.

Example

Successful Response example

{
"Ipv6EgressRuleId":"ipv6py-hp3w98rmlbqp01245****",
"RequestId":"9DFEDBEE-E5AB-49E8-A2DC-CC114C67AF75"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}